// 获取随机颜色
export const randomColor = () => {
  // let r = Math.random() * 255;
  // let g = Math.random() * 255;
  // let b = Math.random() * 255;
  // return `rgba(${r},${g},${b}, 1)`;
  let color = "#";
  for (let i = 0; i < 6; i++)
    color += parseInt(Math.random() * 12).toString(16);
  return color;
};

// 获取页面标题
export const getPageTitle = (pageTitle, title = "页面标题") => {
  if (pageTitle) return `${pageTitle}-${title}`;
  return title;
};
